//
//  HomeList+CoreDataProperties.m
//  
//
//  Created by YC on 2017/8/8.
//
//

#import "HomeList+CoreDataProperties.h"

@implementation HomeList (CoreDataProperties)

+ (NSFetchRequest<HomeList *> *)fetchRequest {
	return [[NSFetchRequest alloc] initWithEntityName:@"HomeList"];
}

@dynamic time;
@dynamic times;
@dynamic remark;
@dynamic index;
@dynamic section;

-(NSString *)timeStr {
    NSDateFormatter *fm = [[NSDateFormatter alloc] init];
    fm.dateFormat = @"HH:mm:ss";
    
    return [fm stringFromDate:self.time];
}

- (NSString *)timesStr {
    return [NSString stringWithFormat:@"%d 次",self.times];
}

@end
